<template>
  <div>
    <div>点击：{{ valueRef }}</div>
    <vhp-button @click="() => run()">点击我！</vhp-button>
  </div>
</template>

<script lang="ts" setup>
  import { ref } from 'vue'

  import { useThrottleFn } from 'vue-hooks-plus'
  const valueRef = ref(0)

  const { run } = useThrottleFn(
    () => {
      valueRef.value += 1
    },
    {
      wait: 1000,
    },
  )
</script>
